package com.nulp.psycho.db.service;

import com.nulp.psycho.db.dao.impl.QuestionDao;

public class QuestionService {

	public <T> void create(T element) {
		new QuestionDao().create(element);
	}


	public <T> T read(Integer id) {
		return new QuestionDao().read(id);
	}


	public void delete(Integer id) {
		new QuestionDao().delete(id);
	}


	public <T> void update(T element) {
		new QuestionDao().update(element);
	}
	
	public <T> T getAllQuestionsByTestId(Integer testId) {
		return new QuestionDao().getAllQuestionsByTestId(testId);
	}
}
